package com.atguigu.gmall.activity.client;

import com.atguigu.gmall.model.activity.SeckillGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @Author: 李旭
 * @Time: 10:47
 * @Description:
 */
@FeignClient(name = "service-activity")
public interface ActivityFeignClient {

    //查询秒杀频道数据
    @GetMapping("/api/activity/seckill/findAll")
    public List<SeckillGoods> findAll();

    //查一个秒杀商品
    @GetMapping("/api/activity/seckill/findBySkuId/{skuId}")
    public SeckillGoods findBySkuId(@PathVariable Long skuId);
}
